package com.project.service.impl;

import com.project.bean.ShopBean;
import com.project.mapper.IShopBeanMapper;
import com.project.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements IShopService {
    @Autowired
    IShopBeanMapper mapper;
    @Override
    public void add(ShopBean shopBean) {
        mapper.insert(shopBean);
    }

    @Override
    public List<ShopBean> findAll() {
        return mapper.selectList(null);
    }

    @Override
    public String findNum(String str) {
        return str;
    }
}
